﻿<%@ Page Language="C#" CodeBehind="ForgotPassword.aspx.cs" Inherits="BikeBouncer.Site.ForgotPassword_aspx" MasterPageFile="/MainLayout.master" %>
<asp:Content ContentPlaceHolderID="MainContents" runat="server">
	<asp:Panel ID="PanForm" runat="server">
		<p>
			<asp:Literal meta:resourcekey="LitForgotInfo" runat="server" />
		</p>
		<div class="PanelForm">
			<asp:Label AssociatedControlID="TxtEmail" meta:resourcekey="LblEmail" runat="server" />
			<asp:TextBox ID="TxtEmail" CssClass="FormText" Width="250px" meta:resourcekey="TxtEmail" runat="server" />
			<asp:RequiredFieldValidator ID="ReqTxtEmail" ControlToValidate="TxtEmail" Display="Dynamic" Text="*" meta:resourcekey="ReqTxtEmail" runat="server" />
			<asp:RegularExpressionValidator ID="ValTxtEmail" ControlToValidate="TxtEmail" Display="Dynamic" Text="*" meta:resourcekey="ValTxtEmail" runat="server" />
			<asp:Label ID="LblEmailNotFound" CssClass="Error" Font-Bold="true" meta:resourcekey="LblEmailNotFound" runat="server" />
		</div>
		<div class="PanelButtons">
			<asp:ValidationSummary CssClass="ValSummary" DisplayMode="List" ShowSummary="true" HeaderText="<%$ Resources:Messages,ValidationSummary %>" runat="server" />
			<asp:Button ID="ButSend" CssClass="FormButton" OnClick="ButSend_Click" meta:resourcekey="ButSend" runat="server" />
		</div>
	</asp:Panel>
	<asp:Panel ID="PanFormSent" runat="server">
		<div class="PasswordSent">
			<img src="/Images/Ico/PasswordSent48.png" width="48" height="48" alt="OK" />
			<p>
				<strong class="Ok"><asp:Literal ID="LitEmailSent" meta:resourcekey="LitEmailSent" runat="server" /></strong>
			</p>
		</div>
	</asp:Panel>
	<asp:Panel ID="PanRecovered" runat="server">
		<asp:UpdatePanel RenderMode="Inline" UpdateMode="Always" runat="server">
			<Triggers>
				<asp:AsyncPostBackTrigger ControlID="ButGenerateNew" EventName="Click" />
			</Triggers>
			<ContentTemplate>
				<asp:Panel ID="PanConfirmNew" runat="server">
					<p>
						<asp:Literal meta:resourcekey="LitConfirmReset" runat="server" />
					</p>
					<asp:Button ID="ButGenerateNew" CssClass="FormButton" OnClick="ButGenerateNew_Click" meta:resourcekey="ButGenerateNew" runat="server" />
				</asp:Panel>
				<asp:Panel ID="PanNewPassword" runat="server">
					<asp:Literal meta:resourcekey="LitYourNewPassword" runat="server" />
					<strong><asp:Literal ID="LitNewPassword" runat="server" /></strong>
					<p>
						<asp:Literal meta:resourcekey="LitNewPasswordInfo" runat="server" />
					</p>
				</asp:Panel>
			</ContentTemplate>
		</asp:UpdatePanel>
	</asp:Panel>
</asp:Content>